package org.example.pojo.select;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@Schema(name = "请假记录DLeaveSelect" ,description = "请假记录查询对象")
public class DLeaveSelect {
    @Schema(description = "请假记录Id")
    private Integer lid;

    @Schema(description = "房间Id")
    private Integer sid;

    @Schema(description = "人员工号")
    private String staffId;

    @Schema(description = "人员姓名")
    private String staffName;

    @Schema(description = "请假类型")
    private String leaveType;

    @Schema(description = "请假开始时间")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private String leaveStartDate;

    @Schema(description = "请假结束时间")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private String leaveEndDate;

    @Schema(description = "请假描述")
    private String leaveDesc;

    @Schema(description = "记录更新那时间")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private String updateDate;

    @Schema(description = "房间号")
    private String apartmentId;

    @Schema(description = "当前页")
    private Integer currentPage;

    @Schema(description = "总页数")
    private Integer pageSize;
}
